<template>
	<view class="">
	</view>
</template>

<script setup>
	async function request(){
		let res = await uni.request({
			url: 'https://jsonplaceholder.typicode.com/posts',
			data: {
				id: 5
			},
			method: 'POST',
			header: {
				token: 'dasdg'
			}
		})
		console.log(res)
	}
	request()
</script>

<style lang='scss' scoped>

</style>
